<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<h2>首页</h2>
<h5 th:text="#{login.tip}"></h5>
<form th:action="@{/user/login}">
    <img th:src="@{/favicon.ico}" ><br>
    用户名<input type="text" name="username" th:placeholder="#{login.remeberme}"><br>
    密码<input type="password" name="password" th:placeholder="#{login.password}"><br>

    <input type="submit" th:value="#{login.btn}">提交
    <p th:text="${msg}" style="color: red"></p>
</form>
<a th:href="@{/index.html(lang='zh_CN')}">中文</a>
<a th:href="@{/index.html(lang='en_US')}">英文</a>
</body>
</html>
